<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="/scripts/jquery-2.1.4.min.js"></script>
<script>
    function hahaha() {
        let pid=$("#pid").val();
         let pname=$("#pname").val();
         let price=$("#price").val();
         $.post("/update.do",{pid:pid,pname:pname,price:price},function (data) {

                 window.location.href="tolist.do"


         })
    }
</script>
</head>
<body>
商品编号:<input type="text" id="pid">
商品名称:<input type="text" id="pname">
商品价格:<input type="text" id="price">
<input type="submit"value="确定" onclick="hahaha()">
</body>
</html>